package com.zimin.cloud.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 字典数据表
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:05
 */
@Getter
@Setter
@TableName("sys_dict_data")
@ApiModel(value = "DictData对象", description = "字典数据表")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DictData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("字典标签")
    @TableField("dict_label")
    private String dictLabel;

    @ApiModelProperty("字典键值")
    @TableField("dict_value")
    private String dictValue;

    @ApiModelProperty("字典类型")
    @TableField("dict_type")
    private String dictType;

    @ApiModelProperty("样式属性（其他样式扩展）")
    @TableField("css_class")
    private String cssClass;

    @ApiModelProperty("表格回显样式")
    @TableField("list_class")
    private String listClass;

    @ApiModelProperty("是否默认（Y是 N否）")
    @TableField("is_default")
    private String isDefault;

    @ApiModelProperty("显示顺序")
    @TableField("sort")
    private Boolean sort;

    @ApiModelProperty("状态(1 正常 0 停用)")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty("删除标志(0 正常 1删除)")
    @TableField("is_delete")
    @TableLogic
    private Boolean delete;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;


}
